package my.client.model;

import java.util.Date;

/**
 * VehicleHistory represents history of a vehicle.
 * 
 * @author Nilaksh Bajpai.
 */
public class VehicleHistory {

	/**
	 * Identifier.
	 */
	private Long id;

	/**
	 * Event date.
	 */
	private Date eventDate;

	/**
	 * Event location.
	 */
	private String eventLocation;

	/**
	 * Odometer reading.
	 */
	private Integer reading;

	/**
	 * Source of the information.
	 */
	private String dataSource;

	/**
	 * Details about the event.
	 */
	private String details;

	/**
	 * @return
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the eventDate
	 */
	public Date getEventDate() {
		return eventDate;
	}

	/**
	 * @param eventDate
	 *            the eventDate to set
	 */
	public void setEventDate(Date eventDate) {
		this.eventDate = eventDate;
	}

	/**
	 * @return the eventLocation
	 */
	public String getEventLocation() {
		return eventLocation;
	}

	/**
	 * @param eventLocation
	 *            the eventLocation to set
	 */
	public void setEventLocation(String eventLocation) {
		this.eventLocation = eventLocation;
	}

	/**
	 * @return the reading
	 */
	public Integer getReading() {
		return reading;
	}

	/**
	 * @param reading
	 *            the reading to set
	 */
	public void setReading(Integer reading) {
		this.reading = reading;
	}

	/**
	 * @return the dataSource
	 */
	public String getDataSource() {
		return dataSource;
	}

	/**
	 * @param dataSource
	 *            the dataSource to set
	 */
	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}

	/**
	 * @return the details
	 */
	public String getDetails() {
		return details;
	}

	/**
	 * @param details
	 *            the details to set
	 */
	public void setDetails(String details) {
		this.details = details;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return String
				.format("VehicleHistory [id=%s, eventDate=%s, eventLocation=%s, reading=%s, dataSource=%s, details=%s]",
						id, eventDate, eventLocation, reading, dataSource,
						details);
	}
	
	

}
